Skip to content

fix: fixes last modified timestamp bug in ddctl#19

Open
swagnikdutta wants to merge 1 commit intomainfrom
bug/last-modified-timestamp
Open

fix: fixes last modified timestamp bug in ddctl#19
swagnikdutta wants to merge 1 commit intomainfrom
bug/last-modified-timestamp

Conversation

@swagnikdutta
Copy link
Collaborator

@swagnikdutta swagnikdutta commented Feb 17, 2026

The Bug

In FilesModel.create(), createdAt and updatedAt weren't set explicitly, so the database default CURRENT_TIMESTAMP was used. SQLite's CURRENT_TIMESTAMP returns a timestamp without timezone info, which can cause timezone interpretation issues when JavaScript parses it, leading to the 5-hour offset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant